package yf.mall.entity;


import lombok.Setter;
import lombok.Getter;
import java.io.Serializable;
import java.util.Date;

import java.math.BigDecimal;

/**
 * 账户记录实体
 * 表名 account_record
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Sun May 24 14:16:14 CST 2020
 */
@Setter
@Getter
public class AccountRecordEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    //
    private Long id;
        //转账人
    private Long fromUserId;
        //到账人
    private Long toUserId;
        //ENUM-类型:"CASH-代金券","POINT-积分","COUPON-优惠券","VOUCHER-换购券","EXP-经验值","GFIT-捐赠"
    private Integer type;
        //ENUM-状态:"WAIT-未完成","DONE-已完成","CLOSE-已取消"
    private Integer status;
        //ENUM-业务:"TRANSFER-调配","CHARGE-充值","PAYMENT-货款","REWARD-奖励","BACK-退回","PAY-支付"
    private Integer bus;
        //变动数量
    private BigDecimal amount;
        //转账人剩余数量
    private BigDecimal fromNowAmount;
        //到账人剩余数量
    private BigDecimal toNowAmount;
        //变动时间
    private Date time;
        //起止时间
    Date[] times;
        //变动原因
    private String info;
        //
    private Boolean hide;

    private Integer month;

    public AccountRecordEntity(){

    }

    public AccountRecordEntity(Long fromUserId, Long toUserId, Integer type, BigDecimal amount, BigDecimal fromNowAmount, BigDecimal toNowAmount, Date time, String info,Integer status,Integer bus) {
        this.fromUserId = fromUserId;
        this.toUserId = toUserId;
        this.type = type;
        this.amount = amount;
        this.fromNowAmount = fromNowAmount;
        this.toNowAmount = toNowAmount;
        this.time = time;
        this.info = info;
        this.status = status;
        this.bus = bus;
        this.hide = false;
    }


}
